//
//  AppDelegate.swift
//  SuperChao_QR
//
//  Created by SuperMac on 16/3/28.
//  Copyright © 2016年 SuperMac. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?
    
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        // 设置导航条、工具条外观，这里设置全局有效
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().tintColor = UIColor.orangeColor()
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        // 创建VC
        let sb = UIStoryboard(name: "QRCodeViewController", bundle: nil)
        let vc = sb.instantiateInitialViewController()
        // 设置根控制器
        window?.rootViewController = vc
        window?.makeKeyAndVisible()
        return true
    }
}

